package com.ihelp.service.impl;

import com.ihelp.pojo.EvaluateLevel;
import com.ihelp.mapper.EvaluateLevelMapper;
import com.ihelp.service.EvaluateLevelService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author LiuZiMing
 * @since 2023-06-07
 */
@Service
public class EvaluateLevelServiceImpl extends ServiceImpl<EvaluateLevelMapper, EvaluateLevel> implements EvaluateLevelService {
@Autowired
private EvaluateLevelMapper evaluateLevelMapper;
    @Override
    public List<EvaluateLevel> getAllEvaluateLevel() {
        return evaluateLevelMapper.selectList(null);
    }

    @Override
    public EvaluateLevel getAllEvaluateLevelById(Integer id) {
        return evaluateLevelMapper.selectById(id);
    }
}
